﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Company.Dialog.Services
{
    public class MessageBoxService
    {
        private static IDialogService _dialogService;
        public MessageBoxService(IDialogService dialogService)
        {
            _dialogService = dialogService;
        }
        public static void ShowDialog(string message)
        {
            var dialogParameters = new DialogParameters();
            dialogParameters.Add("Message", message);
            _dialogService.ShowDialog("MessageBoxDialogView", dialogParameters, r =>
            {
            });
        }
        public static void ShowDialog(string messageBoxTitle,string message)
        {
            var dialogParameters = new DialogParameters();
            dialogParameters.Add("Title", messageBoxTitle);
            dialogParameters.Add("Message", message);
            _dialogService.ShowDialog("MessageBoxDialogView", dialogParameters, r =>
            {
            });
        }
    }
}
